<?php

use Drupal\shusy_card\Entity\ShusyCard;

function shusy_card_shusy_card_add_page() {
  $e = new ShusyCard();
  module_load_include('inc', 'shusy_card', 'shusy_card.forms');
  return drupal_get_form('shusy_card_shusy_card_entity_form', $e, 'add');
}

function shusy_card_shusy_card_view_page(ShusyCard $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_card_shusy_card_edit_page(ShusyCard $e) {
  module_load_include('inc', 'shusy_card', 'shusy_card.forms');
  return drupal_get_form('shusy_card_shusy_card_entity_form', $e, 'edit');
}

function shusy_card_shusy_card_delete_page(ShusyCard $e) {
  module_load_include('inc', 'shusy_card', 'shusy_card.forms');
  return drupal_get_form('shusy_card_shusy_card_delete_form', $e);
}

